package org.example.smartbuy.service;

import org.example.smartbuy.entity.Products;
import com.baomidou.mybatisplus.extension.service.IService;
import java.util.List;
/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Smarty Buy
 * @since 2024-11-18
 */
public interface IProductsService extends IService<Products> {

    List<Products> listAll();

    Products add(Products products, int amount, int adminId);

    Products getById(int id);

    Products update(Products products, int adminId);

    void delete(int id, int adminId);
}
